package javacore2ch5;

import java.util.Date;
import java.util.GregorianCalendar;

class Employee {
	private String name;
	private String title;
	private double salary;
	private Date hireDay;
	public Employee(String n, String t, double s, int year, int month, int day) {
		name = n;
		title = t;
		salary = s;
		GregorianCalendar calendar = new GregorianCalendar(year, month-1, day);
		hireDay = calendar.getTime();
	}
	public String getName() {
		return name;
	}
	public double getSalary() {
		return salary;
	}
	public String getTitle() {
		return title;
	}
	public Date getHireDay() {
		return hireDay;
	}
	public void raiseSalary(double percenteage) {
		double raise = salary * percenteage / 100;
		salary += raise;
	}
	
}